package com.bobo.mapper;

import java.util.List;

import com.bobo.vo.Page;
import com.bobo.vo.User;
import com.bobo.vo.extension.CityProductProfit;
import com.bobo.vo.extension.Extension;
import com.bobo.vo.extension.ProductListExtension;
import com.bobo.vo.extension.ProductSaleExtension;

public interface HandleMapper {
	public List<User> findUserAll();
	
	//找出某位用户购买商品清单
	public List<Extension> findUserBuyList(int id);
	//商品列表
	public List<ProductSaleExtension> findProductList();
	//商品购买详情
	public List<Extension> findProductBuyDetail(int productId);
	//城市列表
	public List<User> findCityList();
	//按城市汇总商品最新一个月销售利润top10
	public List<CityProductProfit> findCityProductProfitList(String address);
	//按城市汇总商品最新一个月前一个月销售利润top10
	public List<CityProductProfit> findCityProductProfitListLastMonth(String address);
	/**
	 * 
	 * <p>Title: findCityProductProfitList2</p>
	 * <p>Description: 分页后的商品购买详情</p>
	 * @author   HuaJiangbo
	 * @param page
	 * @return List<ProductListExtension>
	 */
	public List<ProductListExtension> findCityProductProfitList2(Page page);
	/**
	 * 
	 * <p>Title: findProductNum</p>
	 * <p>Description: 查找共有多少件商品</p>
	 * @author   HuaJiangbo
	 * @return int
	 */
	public Integer findProductNum();
}
